package com.itheima.Thread10;

public class Demo {
    public static void main(String[] args) {
        //创建线程对象
        MyThread myThread = new MyThread();
        MyThread myThread1 = new MyThread();

        myThread.setName("窗口一");
        myThread1.setName("窗口二");

        //开启线程
        myThread.start();
        myThread1.start();
    }
}
